package com.gxa.hotel.core.pojo.domain;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author hotel
 * @since 2022-07-20
 */
@Data
@TableName("tb_room_order")
@ApiModel(value = "RoomOrder对象", description = "")

public class RoomOrder implements Serializable {

    private static final long serialVersionUID = 1L;

     @ApiModelProperty("订单编号")
     @TableId(value = "ro_id")
      private String roId;


    @ApiModelProperty("入住时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using=LocalDateTimeDeserializer.class)
    private LocalDateTime roInTime;

    @ApiModelProperty("离开时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using= LocalDateTimeDeserializer.class)
    private LocalDateTime roOutTime;

    @ApiModelProperty("房型")
    private String rType;

    @ApiModelProperty("房号")
    private Integer rId;

    @ApiModelProperty("用户姓名")
    private String roName;

    @ApiModelProperty("用户手机")
    private String roPhone;

    @ApiModelProperty("实付金额")
    private Double isShow;

    @ApiModelProperty("订单状态")
    private Integer roState;
    @ApiModelProperty("备注")
    private String describe;
    @TableLogic
    @JsonFormat
    @ApiModelProperty("删除状态")
    private Integer deleted;
}
